FROM ubuntu:18.04
LABEL maintainer "zhujian <zjykzj@github.com>"

COPY sources.list .
ENV DEBIAN_FRONTEND=noninteractive
RUN set -eux && \
    rm /etc/apt/sources.list && \
    mv sources.list /etc/apt/sources.list && \
    apt-get update && \
    apt-get install -y locales tzdata xfonts-wqy && \
    locale-gen zh_CN.UTF-8 && \
    update-locale LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 && \
    ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    dpkg-reconfigure --frontend noninteractive tzdata && \
    find /var/lib/apt/lists -type f -delete && \
    find /var/cache -type f -delete

ENV LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8